package cn.edu.zafu.bigdata.yt.equals;

public class TestCube_yt {
    public static void main(String[] args) {
        Cube_yt cube1 = new Cube_yt(3.0, 4.0, 7.0);
        Cube_yt cube2 = new Cube_yt(3.0, 4.0, 7.0);
        Cube_yt cube3 = new Cube_yt(3.0, 5.0, 6.0);

        System.out.println("cube1 equals cube2: " + cube1.equals(cube2)); 
        System.out.println("cube1 equals cube3: " + cube1.equals(cube3)); 

        System.out.println("cube1 equals itself: " + cube1.equals(cube1)); 

        System.out.println("cube1 equals null: " + cube1.equals(null)); 

        System.out.println("cube1 equals a String: " + cube1.equals("Test")); 
    }
}
